import {Drawer} from 'antd';
const Child = (props) => {
    const {onSubmitAjax, open, setOpen} = props;
    const onSubmit = () => {
        onSubmitAjax(100)
    }
    return (
        // <Drawer open={open} onClose={() =>setOpen(false)}>
            <div>
                <hr />
                <h1>Child Component</h1>
                <p>Hello, I am the children component.</p>
                <input type="text"/>
                <button onClick={onSubmit}>提交表单</button>
            </div>
        // </Drawer>
    );
}

export default Child;